import App from './App'
import share from '@/utils/share.js'  //注意路径是上一步新建文件的路径
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.mixin(share)
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import pinia from '@/stores/index'

export function createApp() {
  const app = createSSRApp(App)
  app.use(pinia) // 将 Pinia 注入到应用中
  app.mixin(share)
  return {
    app,
	pinia
  }
}
// #endif